<template>
  <van-popup
    :value="show"
    :close-on-click-overlay="false"
    style="background-color: transparent"
  >
    <van-loading
      :vertical="vertical"
      :color="color"
    >{{text}}</van-loading>
  </van-popup>
</template>

<script>
export default {
  props: {
    show: {
      default: false,
      type: Boolean
    },
    vertical: {
      default: true,
      type: Boolean
    },
    color: {
      default: '#1989fa',
      type: String
    },
    text: {
      default: '加载中...',
      type: String
    }
  }
}
</script>